<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>stapes例子08</title>
    <script type="text/javascript" src="../lib/stapes-0.8.1/stapes.js"></script>
</head>
<body>
    <h1>你好!!!</h1>

    <script type="text/javascript">
        var Module = new Stapes.subclass({
            constructor : function(props) {
                this.extend( props );
            },

            sayInfo : function() {
                console.log(this.name + ' plays ' + this.instrument);
            }
        });

        var module = new Module({
            'name' : 'Johnny',
            'instrument' : 'guitar'
        });

        module.sayInfo();
    </script>


</body>
</html>